@forelse($posts as $post)
<div>
    {{$post}}
</div>
@empty
<h2>没数据</h2>
@endforelse